package com.everyline.lib_common.bean

import android.os.Parcel
import android.os.Parcelable

/**
 * Created by on 2021/2/27.
 * 天天挂线
 *  746608431@qq.com
 *  描述:TODO
 */

class UserInfoBean(
    var auditStatus: Int,
    var color: String,
    var carNo: String,
    var driverMobile: String,
    var driverName: String,
    var model: String,
    var jwtToken: String,
    var driverHeadImg: String,
    var brand: String,
    var amapTid: String,
    var driverId: String,
    var amapSid: String,
) : Parcelable {
    constructor(parcel: Parcel) : this(
        parcel.readInt(),
        parcel.readString()!!,
        parcel.readString()!!,
        parcel.readString()!!,
        parcel.readString()!!,
        parcel.readString()!!,
        parcel.readString()!!,
        parcel.readString()!!,
        parcel.readString()!!,
        parcel.readString()!!,
        parcel.readString()!!,
        parcel.readString()!!
    )

    override fun writeToParcel(parcel: Parcel, flags: Int) {
        parcel.writeInt(auditStatus)
        parcel.writeString(color)
        parcel.writeString(carNo)
        parcel.writeString(driverMobile)
        parcel.writeString(driverName)
        parcel.writeString(model)
        parcel.writeString(jwtToken)
        parcel.writeString(driverHeadImg)
        parcel.writeString(brand)
        parcel.writeString(amapTid)
        parcel.writeString(driverId)
        parcel.writeString(amapSid)
    }

    override fun describeContents(): Int {
        return 0
    }

    companion object CREATOR : Parcelable.Creator<UserInfoBean> {
        override fun createFromParcel(parcel: Parcel): UserInfoBean {
            return UserInfoBean(parcel)
        }

        override fun newArray(size: Int): Array<UserInfoBean?> {
            return arrayOfNulls(size)
        }
    }
}